import request from '@/utils/request'

// data 请求体数据
export function addSection(data){
  return request({
    url: '/aboutUsSection/add',
    method: 'post',
    data: data
  })

}

export function getSectionList(){
  return request({
    url: '/aboutUsSection/list',
    method: 'get'
  })

}

export function updateSection(data){
  return request({
    url: '/aboutUsSection/update',
    method: 'post',
    data: data
  })

}

export function deleteSection(data){
  return request({
    url: '/aboutUsSection/delete',
    method: 'post',
    data: data
  })

}

export function getBannerSectionList(){
    return request({
      url: '/aboutUsBanner/sectionList',
      method: 'get'
    })

}
export function getBannerIdList(sectionNameValue){
     return request({
        url:'/aboutUsBanner/getBannerIdList',
        method:'post',
        data:{
           "sectionName":sectionNameValue
        }
     })
}
